//
//  SecondViewController.m/Users/dllo/Desktop/ 杨斌/HomeworK/PhotoClass/PhotoClass/ViewController.m
//  UI_Lesson11.homework
//
//  Created by dllo on 15/11/10.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "SecondViewController.h"
#import "PhotoChange.h"
@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
  self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
    
    self.view.backgroundColor = [UIColor colorWithRed:0.6 green:0.9 blue:0.1 alpha:1];
    PhotoChange *scrollWithCarousel = [[PhotoChange alloc] initWithFrame:self.view.frame];
    [self.view addSubview:scrollWithCarousel];

    [scrollWithCarousel setArrayAndDistance:@[@"5.jpg", @"6.jpg", @"7.jpg",@"8.jpg"] withDistance:30];
    [scrollWithCarousel setTimer:3];
    
    [scrollWithCarousel release];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
